<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ESHOP管理平台</title>
<style type="text/css">
body{font-family:"微软雅黑";font-size:"12px";background:#F9F9F6}
h1{font-size:"18px";}
h2{font-size:14px}
.current{background-color:#F9F9F6}

.top a{height:130px;text-decoration:none}
#logo{font-size:30px;}
#user{margin-left:20px;font-size:13px;}

.menu{margin-top:10px;}
.menu span{margin-right:15px;border:1px dashed #666666;padding:10px}
.menu span:hover{color:#fff;background:#317ee7;}
</style>
</head>
<body>
<div class="top">
       <div>
			<span id="logo">ESHOP管理平台</span>
			<span id="user">欢迎你：<?php echo session('admin_name')."[".session('admin_role')."]"; ?></span>
			<span><a href="__GROUP__/Mayijie/login_out">退出</a></span>
		</div>

		<div class="menu">
<?php $perm_key = session('admin_perm'); $perm_arr = explode(",",$perm_key); if(in_array(1,$perm_arr)){ echo '<a href="__GROUP__/System/menu" target="menu"><span>系统管理</span></a>';} if(in_array(2,$perm_arr)){ echo '<a href="__GROUP__/Shoppay/menu" target="menu"><span>支付/配送方式</span></a>';} if(in_array(3,$perm_arr)){ echo '<a href="__GROUP__/Weishop/menu" target="menu"><span>商家管理</span></a>';} if(in_array(4,$perm_arr)){ echo '<a href="__GROUP__/Goods/menu" target="menu"><span>商品管理</span></a>';} if(in_array(5,$perm_arr)){ echo '<a href="__GROUP__/Wallet/menu" target="menu"><span>礼品卡管理</span></a>';} if(in_array(6,$perm_arr)){ echo '<a href="__GROUP__/Coupons/menu" target="menu"><span>优惠券管理</span></a>';} if(in_array(7,$perm_arr)){ echo '<a href="__GROUP__/Orders/menu" target="menu"><span>订单管理</span></a>';} if(in_array(8,$perm_arr)){ echo '<a href="__GROUP__/Page/menu" target="menu"><span>文章管理</span></a>';} if(in_array(9,$perm_arr)){ echo '<a href="__GROUP__/Member/menu" target="menu"><span>会员管理</span></a>';} if(in_array(10,$perm_arr)){ echo '<a href="__GROUP__/Ad/menu" target="menu"><span>广告系统</span></a>';} echo '<a href="__APP__/" target="_blank"><span style="position:absolute;top:0px;right:0;width:200px;text-align:center">浏览商城</span></a>'; ?>
		</div>

</div>